<div class="centerleft">
<div id="leftbg">
	<div id="treemenu" class="sdmenu">
	      <?php if (count($this->_tpl_vars['menulinkarray'])>0){$divid_i=1;for($i=0;$i<count($this->_tpl_vars['menulinkarray']); $i++){?>
		  <?php if($this->powercheck($this->_tpl_vars['menulinkarray'][$i]['topmlid'], $this->_tpl_vars['menulinkarray'][$i]['mlid'] ) == true ){ ?>
	      <?php if($this->_tpl_vars['menulinkarray'][$i]['collapsed']=='true'){ ?><div><?php }else{ ?><div class="collapsed"><?php } ?>
		<span><?php echo $this->_tpl_vars['menulinkarray'][$i]['menuname'] ?></span>
			<?php if (count($this->_tpl_vars['menulinkarray'][$i]['linked'])>0){$divid_ii=1;for($ii=0;$ii<count($this->_tpl_vars['menulinkarray'][$i]['linked']); $ii++){?>
			        <?php if($this->powercheck($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['topmlid'], $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['mlid'] ) == true ){ ?>
					<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['iswindow']==1){ ?>
					<a class="infolink06" href="javascript:windowsdig('<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?>','iframe:<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['linkurl'] ?>','<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['width'] ?>px','<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['height'] ?>px','iframe',true,1);" hidefocus="true"><?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?></a>
					<?php } elseif($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['iswindow']==2 ){ ?>
							<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['archive']==$this->_tpl_vars['archive'] && $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['action']==$this->_tpl_vars['action'] && $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['loadfun']!=$this->_tpl_vars['loadfun']){ ?>
								<p class="tabclick"<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['istab']==1){ ?> jerichotabindex="0"<?php } ?> dataType='iframe' dataLink='<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['linkurl'] ?>' iconImg='templates/images/tab.gif'><a class="infolink06" href="#body" hidefocus="true"><?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?></a></p>
							<?php }else{ ?>
								<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['archive']==$this->_tpl_vars['archive'] && $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['loadfun']==$this->_tpl_vars['loadfun'] && $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['loadfun']!='modelarticlelist'){ ?>
									<p class="tabclick" jerichotabindex="0"><a class="infolink06" href="#body" hidefocus="true"><?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?></a></p>
								<?php }else{ ?>
									<p class="tabclick" jerichotabindex="0"><a class="infolink06" href="<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['taburl'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?></a></p>
								<?php } ?>
							<?php } ?>
					<?php }else{ ?>
						<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['archive']==$this->_tpl_vars['archive'] && $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['loadfun']==$this->_tpl_vars['loadfun'] && $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['loadfun']!='modelarticlelist'){ ?>
							<p class="tabclick"<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['istab']==1){ ?> jerichotabindex="0"<?php } ?>><a class="infolink06" href="#body" hidefocus="true"><?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?></a></p>
						<?php }else{ ?>
							<p class="tabclick"<?php if($this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['istab']==1){ ?> jerichotabindex="0"<?php } ?>><a class="infolink06" href="<?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['linkurl'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['menulinkarray'][$i]['linked'][$ii]['menuname'] ?></a></p>
						<?php } ?>
					<?php } ?>
				<?php } ?>
			<?php }} ?>
	        </div>
			<?php } ?>
	     <?php }} ?>
	</div>
</div>
</div>